import { defineComponent, h } from "vue";

export default defineComponent({
  name: "TitanFormRender",
  props: {
    form: {
      type: Object,
      default: () => ({}),
    },
    rootForm: {
      type: Object,
      default: () => ({}),
    },
    render: {
      type: Function,
      default: function () {
        // do nothing
      },
    },
  },
  setup(props) {
    return () => props.render(h, props.form);
  },
});
